/**
 * 
 */
package domain;

/**
 * @author it-equipment-selection team
 *
 */
public abstract class Product {
	
	private String brand;
	private String model;
	private double price;
	private boolean validate;
	private boolean isValid;
	private Article article; //tipo de producto
	private Supplier supplier; //empresa que suministra el producto
	private int numVotes;
	
	public Product(String brand, String model, double price, Article article, Supplier supplier) {
		this.brand = brand;
		this.model = model;
		this.price = price;
		this.article = article;
		this.supplier = supplier;
	}

	public abstract void doValidate();

	public void setNumVotes(int numVotes) {
		this.numVotes = numVotes;
	}
	
	public int getNumVotes() {
		return numVotes;
	}

	public Supplier getSupplier() {
		return supplier;
	}

	public void setSupplier(Supplier supplier) {
		this.supplier = supplier;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public boolean isValidate() {
		return validate;
	}

	public void setValidate(boolean validate) {
		this.validate = validate;
	}

	public boolean isValid() {
		return isValid;
	}

	public void setValid(boolean isValid) {
		this.isValid = isValid;
	}

	public Article getArticle() {
		return article;
	}

	public void setArticle(Article article) {
		this.article = article;
	}
}